package com.trkj.service;

import com.trkj.dao.CostDao;
import com.trkj.entity.CostEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Slf4j
public class CostServiceImpl implements CostService{
    @Autowired
    private CostDao costDao;
    @Override
    public List<CostEntity> findBillingltems(CostEntity costEntity){
        return costDao.findBillingltems(costEntity);
    }
    @Override
    @Transactional
    public boolean AddBillingltems(CostEntity costEntity){
        return costDao.AddBillingltems(costEntity);
    }
    @Override
    public List<CostEntity> findCost(){
        return costDao.findCost();
    }
    @Override
    @Transactional
    public boolean addFwfyconnect(CostEntity costEntity){
        return costDao.addFwfyconnect(costEntity);
    }
    @Override
    public List<CostEntity> CostTongJi(){
        return costDao.CostTongJi();
    }
}
